<admintpl file="header" />
<style>
    .p_data td{
        text-align: left;
    }
</style>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:U('Appmanager/app_manager_list')}">app管理员列表</a></li>
        <li><a href="{:U('Appmanager/add_app_manager')}">添加app管理员</a></li>
    </ul>

    <form method="post" class="js-ajax-form">
        <!--<div class="table-actions">-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/sign',array('sign'=>1))}" data-subcheck="true">签约</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelsign',array('unsign'=>1))}" data-subcheck="true">取消签约</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/incubator',array('incubator'=>1))}" data-subcheck="true">领取保温箱</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/freezee',array('freezee'=>1))}" data-subcheck="true" data-msg="您确定冻结账户吗？">冻结</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelfreezee',array('cancelfreezee'=>1))}" data-subcheck="true" data-msg="您确定启用账户吗？">启用</button>-->
            <!--<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Bdrunpeople/cancelaudit',array('audit'=>1))}" data-subcheck="true">取消审核</button>-->
        <!--</div>-->
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>手机号</th>
                <th>姓名</th>
                <th>注册时间</th>
                <th>最近登录时间</th>
                <th align="center">
                  操作
                </th>
            </tr>
            </thead>
            <tbody>
            <foreach name="datas" item="vo" key="k">
                <tr class="p_data">
                    <td align="center">{$k+1}</td>
                    <td align="center">{$vo.mobile}</td>
                    <td>{$vo['user_name']}</td>
                    <td>{$vo['create_time']}</td>
                    <td>{$vo.last_login_time}</td>
                    <td align="center">
                        <a href="{:U('Appmanager/edit_app_manager',array('id'=>empty($vo['id'])?'':$vo['id']))}">修改</a>
                        | <a href="{:U('Appmanager/delete_app_manager',array('id'=>$vo['id'])) }" class="js-ajax-delete">删除</a>
                        <if condition="$vo['user_status'] =='1'">
                        | <a class="btn btn-primary btn-small js-ajax-dialog-btn" href="{:U('Appmanager/app_manager_freezee',array('id'=>empty($vo['id'])?'':$vo['id'],'freezee'=>1,'formget'=>$formget))}" data-subcheck="true" data-msg="您确定禁用{$vo['user_name']}账户吗？">禁用</a>
                            <else/>
                            | <a class="btn btn-primary btn-small js-ajax-dialog-btn" href="{:U('Appmanager/app_manager_freezee',array('id'=>empty($vo['id'])?'':$vo['id'],'freezee'=>2,'formget'=>$formget))}" data-subcheck="true" data-msg="您确定启用{$vo['user_name']}账户吗？">启用</a>
                        </if>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($datas)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>

</script>
</body>
</html>